var mongoose = require('mongoose');
const Admin = require('../models/admin.model');

// 验证
exports.login = function(req, res, next) {
    console.log(req.body) //前端传入的数据
    Admin.find({ name: req.body.name }).then(data => {
        res.json(data)

    })
}